package com.pai4j.zwiki.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * ZWiki任务消息DTO
 * 用于在消息队列中传递任务信息
 *
 * @author pai4j
 * @since 2025-10-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ZWikiTaskMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务ID
     */
    private String taskId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 任务类型：project_analysis, thesis_generation
     */
    private String taskType;

    /**
     * 优先级
     */
    private Integer priority;

    /**
     * 任务数据（JSON）
     */
    private String taskData;

    /**
     * 创建时间戳
     */
    private Long timestamp;
}

